﻿import QtQuick 2.0
import Modules 1.0
import QtQuick.Layouts 1.12
import QtQuick.Controls 2.12

Rectangle{
    id: searchview
    Layout.fillWidth: true
    Layout.fillHeight: true
    color: "#FFFFFF"

    BaseNavigationBar{
        id: navigationBar
        title: qsTr("选择项目")

        Item {
            id: backbutton
            width: image.width + text.width + spacing
            height: 44
            property int spacing: 10
            anchors.left: parent.left
            anchors.leftMargin: spacing * 2
            Image {
                id: image
                source: "../../images/measure_other/measure_back.png"
                anchors.left: parent.left
                anchors.verticalCenter: parent.verticalCenter
                width: 15;height: 15
            }

            Text {
                id: text
                text: qsTr("返回")
                anchors.left: image.right
                anchors.leftMargin: spacing
                anchors.verticalCenter: parent.verticalCenter
                font.pointSize: 14
            }

            MouseArea {
                anchors.fill: parent
                onClicked: searchview.parent.pop()
            }
        }
    }
}
